package cn.fch.gotrip.dao;

import cn.fch.gotrip.entity.Room;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: gotrip
 * @description:
 * @CreatedBy: fch
 * @create: 2023-01-19 16:17
 **/
@Repository
public interface RoomDao {
    int addHotelRoom(Room room);

    int updateRoom(Room room);

    List<Room.RoomBed> queryAllRoomBed();

    List<Room.RoomBreakfast> queryAllRoomBreakfast();

    List<Room> queryRoomByHotel(@Param("id")Integer id);

    Room queryRoomById(@Param("id")Integer id);

    Boolean isExistById(@Param("id") Integer id);
}
